package thread;

public class LambdaDemo {
    public static void main(String[] args) {
        MyRunnable  runnable=new MyRunnable();
       // runnable.run();
        Thread thread=new Thread(runnable);
        thread.start();
        new Thread(new Runnable(){

            @Override
            public void run() {
                System.out.println("真的不想动");
            }
        }).start();
        new Thread(()->{
            System.out.println("无语了");
        }).start();

    }
}
class   MyRunnable  implements  Runnable{

    @Override
    public void run() {
        System.out.println("越到后面，就越不想动");
    }
}